const {request , imgUrl} = require('../../../../../utils/request');

Page({
    data: {
        showImg: true,
        shop: {},
        imgUrl: imgUrl,
        showBigImg: true,
        bigImg: ''
    },
    onLoad() {
        var pages = getCurrentPages();
        var prevPage = pages[pages.length - 2];
        console.log(prevPage)
        this.setData({
            shop: prevPage.__data__.shop
        })
    },
    onReady: function(){
        wx.setNavigationBarTitle({
            title: '门店介绍'
        })   
    },
    showBig(e) {
        console.log(e)
        let img = e.currentTarget.dataset.img;
        this.setData({
            bigImg: img,
            showBigImg: false
        })
    },
    hiddenImg() {
        this.setData({
            showBigImg: true
        })
    }
})